//package pri.black.dogview.security;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.security.core.userdetails.UserDetails;
//import org.springframework.security.core.userdetails.UserDetailsService;
//import org.springframework.security.core.userdetails.UsernameNotFoundException;
//import org.springframework.stereotype.Component;
//import pri.black.dogview.domain.Admin;
//import pri.black.dogview.service.IAdminService;
//
//@Component
//public class AdminDetailService implements UserDetailsService {
//
//    @Autowired
//    IAdminService adminService;
//
//    @Override
//    public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
//        Admin admin = adminService.lambdaQuery().eq(Admin::getUsername, username).one();
//        return new AdminDetails(admin);
//    }
//}
